package org.jeecg.modules.online.config.util;

import java.util.Comparator;
import org.jeecg.modules.online.cgform.entity.OnlCgformField;

public class OnlCgformFieldComparator implements Comparator<OnlCgformField> {

    public int compare(OnlCgformField var1, OnlCgformField var2) {
        if (var1 != null && var1.getOrderNum() != null && var2 != null && var2.getOrderNum() != null) {
            Integer var3 = var1.getOrderNum();
            Integer var4 = var2.getOrderNum();
            return var3 < var4 ? -1 : (var3 == var4 ? 0 : 1);
        } else {
            return -1;
        }
    }
}
